Optimal. Leaf size=168 \[ \frac {\sqrt {a+b x^2+c x^4}}{2 e}-\frac {(2 c d-b e) \tanh ^{-1}\left (\frac {b+2 c x^2}{2 \sqrt {c} \sqrt {a+b x^2+c x^4}}\right )}{4 \sqrt {c} e^2}+\frac {\sqrt {c d^2-b d e+a e^2} \tanh ^{-1}\left (\frac {b d-2 a e+(2 c d-b e) x^2}{2 \sqrt {c d^2-b d e+a e^2} \sqrt {a+b x^2+c x^4}}\right )}{2 e^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 168, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {1261, 748, 857,
635, 212, 738} \begin {gather*} \frac {\sqrt {a e^2-b d e+c d^2} \tanh ^{-1}\left (\frac {-2 a e+x^2 (2 c d-b e)+b d}{2 \sqrt {a+b x^2+c x^4} \sqrt {a e^2-b d e+c d^2}}\right )}{2 e^2}-\frac {(2 c d-b e) \tanh ^{-1}\left (\frac {b+2 c x^2}{2 \sqrt {c} \sqrt {a+b x^2+c x^4}}\right )}{4 \sqrt {c} e^2}+\frac {\sqrt {a+b x^2+c x^4}}{2 e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 635
Rule 738
Rule 748
Rule 857
Rule 1261
Rubi steps
\begin {align*} \int \frac {x \sqrt {a+b x^2+c x^4}}{d+e x^2} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {\sqrt {a+b x+c x^2}}{d+e x} \, dx,x,x^2\right )\\ &=\frac {\sqrt {a+b x^2+c x^4}}{2 e}-\frac {\text {Subst}\left (\int \frac {b d-2 a e+(2 c d-b e) x}{(d+e x) \sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{4 e}\\ &=\frac {\sqrt {a+b x^2+c x^4}}{2 e}-\frac {(2 c d-b e) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{4 e^2}+\frac {\left (c d^2-b d e+a e^2\right ) \text {Subst}\left (\int \frac {1}{(d+e x) \sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{2 e^2}\\ &=\frac {\sqrt {a+b x^2+c x^4}}{2 e}-\frac {(2 c d-b e) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x^2}{\sqrt {a+b x^2+c x^4}}\right )}{2 e^2}-\frac {\left (c d^2-b d e+a e^2\right ) \text {Subst}\left (\int \frac {1}{4 c d^2-4 b d e+4 a e^2-x^2} \, dx,x,\frac {-b d+2 a e-(2 c d-b e) x^2}{\sqrt {a+b x^2+c x^4}}\right )}{e^2}\\ &=\frac {\sqrt {a+b x^2+c x^4}}{2 e}-\frac {(2 c d-b e) \tanh ^{-1}\left (\frac {b+2 c x^2}{2 \sqrt {c} \sqrt {a+b x^2+c x^4}}\right )}{4 \sqrt {c} e^2}+\frac {\sqrt {c d^2-b d e+a e^2} \tanh ^{-1}\left (\frac {b d-2 a e+(2 c d-b e) x^2}{2 \sqrt {c d^2-b d e+a e^2} \sqrt {a+b x^2+c x^4}}\right )}{2 e^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.43, size = 153, normalized size = 0.91 \begin {gather*} \frac {2 e \sqrt {a+b x^2+c x^4}+4 \sqrt {-c d^2+e (b d-a e)} \tan ^{-1}\left (\frac {\sqrt {c} \left (d+e x^2\right )-e \sqrt {a+b x^2+c x^4}}{\sqrt {-c d^2+e (b d-a e)}}\right )+\frac {(2 c d-b e) \log \left (b+2 c x^2-2 \sqrt {c} \sqrt {a+b x^2+c x^4}\right )}{\sqrt {c}}}{4 e^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(756\) vs.
\(2(144)=288\).
time = 0.16, size = 757, normalized size = 4.51 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.03, size = 1074, normalized size = 6.39 \begin {gather*} \left [\frac {{\left (4 \, \sqrt {c x^{4} + b x^{2} + a} c e - {\left (2 \, c d - b e\right )} \sqrt {c} \log \left (-8 \, c^{2} x^{4} - 8 \, b c x^{2} - b^{2} - 4 \, \sqrt {c x^{4} + b x^{2} + a} {\left (2 \, c x^{2} + b\right )} \sqrt {c} - 4 \, a c\right ) + 2 \, \sqrt {c d^{2} - b d e + a e^{2}} c \log \left (-\frac {8 \, c^{2} d^{2} x^{4} + 8 \, b c d^{2} x^{2} + {\left (b^{2} + 4 \, a c\right )} d^{2} + 4 \, \sqrt {c x^{4} + b x^{2} + a} {\left (2 \, c d x^{2} + b d - {\left (b x^{2} + 2 \, a\right )} e\right )} \sqrt {c d^{2} - b d e + a e^{2}} + {\left ({\left (b^{2} + 4 \, a c\right )} x^{4} + 8 \, a b x^{2} + 8 \, a^{2}\right )} e^{2} - 2 \, {\left (4 \, b c d x^{4} + {\left (3 \, b^{2} + 4 \, a c\right )} d x^{2} + 4 \, a b d\right )} e}{x^{4} e^{2} + 2 \, d x^{2} e + d^{2}}\right )\right )} e^{\left (-2\right )}}{8 \, c}, \frac {{\left ({\left (2 \, c d - b e\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {c x^{4} + b x^{2} + a} {\left (2 \, c x^{2} + b\right )} \sqrt {-c}}{2 \, {\left (c^{2} x^{4} + b c x^{2} + a c\right )}}\right ) + 2 \, \sqrt {c x^{4} + b x^{2} + a} c e + \sqrt {c d^{2} - b d e + a e^{2}} c \log \left (-\frac {8 \, c^{2} d^{2} x^{4} + 8 \, b c d^{2} x^{2} + {\left (b^{2} + 4 \, a c\right )} d^{2} + 4 \, \sqrt {c x^{4} + b x^{2} + a} {\left (2 \, c d x^{2} + b d - {\left (b x^{2} + 2 \, a\right )} e\right )} \sqrt {c d^{2} - b d e + a e^{2}} + {\left ({\left (b^{2} + 4 \, a c\right )} x^{4} + 8 \, a b x^{2} + 8 \, a^{2}\right )} e^{2} - 2 \, {\left (4 \, b c d x^{4} + {\left (3 \, b^{2} + 4 \, a c\right )} d x^{2} + 4 \, a b d\right )} e}{x^{4} e^{2} + 2 \, d x^{2} e + d^{2}}\right )\right )} e^{\left (-2\right )}}{4 \, c}, \frac {{\left (4 \, \sqrt {-c d^{2} + b d e - a e^{2}} c \arctan \left (-\frac {\sqrt {c x^{4} + b x^{2} + a} {\left (2 \, c d x^{2} + b d - {\left (b x^{2} + 2 \, a\right )} e\right )} \sqrt {-c d^{2} + b d e - a e^{2}}}{2 \, {\left (c^{2} d^{2} x^{4} + b c d^{2} x^{2} + a c d^{2} + {\left (a c x^{4} + a b x^{2} + a^{2}\right )} e^{2} - {\left (b c d x^{4} + b^{2} d x^{2} + a b d\right )} e\right )}}\right ) + 4 \, \sqrt {c x^{4} + b x^{2} + a} c e - {\left (2 \, c d - b e\right )} \sqrt {c} \log \left (-8 \, c^{2} x^{4} - 8 \, b c x^{2} - b^{2} - 4 \, \sqrt {c x^{4} + b x^{2} + a} {\left (2 \, c x^{2} + b\right )} \sqrt {c} - 4 \, a c\right )\right )} e^{\left (-2\right )}}{8 \, c}, \frac {{\left (2 \, \sqrt {-c d^{2} + b d e - a e^{2}} c \arctan \left (-\frac {\sqrt {c x^{4} + b x^{2} + a} {\left (2 \, c d x^{2} + b d - {\left (b x^{2} + 2 \, a\right )} e\right )} \sqrt {-c d^{2} + b d e - a e^{2}}}{2 \, {\left (c^{2} d^{2} x^{4} + b c d^{2} x^{2} + a c d^{2} + {\left (a c x^{4} + a b x^{2} + a^{2}\right )} e^{2} - {\left (b c d x^{4} + b^{2} d x^{2} + a b d\right )} e\right )}}\right ) + {\left (2 \, c d - b e\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {c x^{4} + b x^{2} + a} {\left (2 \, c x^{2} + b\right )} \sqrt {-c}}{2 \, {\left (c^{2} x^{4} + b c x^{2} + a c\right )}}\right ) + 2 \, \sqrt {c x^{4} + b x^{2} + a} c e\right )} e^{\left (-2\right )}}{4 \, c}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x \sqrt {a + b x^{2} + c x^{4}}}{d + e x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x\,\sqrt {c\,x^4+b\,x^2+a}}{e\,x^2+d} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________